const { watchEffect } = window.Vue

const useTitle = (count) => {
  watchEffect(() => {
    document.title = count.value
  })
}

export default useTitle